<?php
/**
 * Created by PhpStorm.
 * User: 1
 * Date: 2018/3/22
 * Time: 11:47
 */

namespace app\api\controller\v1;

use think\Db;
use think\Log;
use app\api\model\Account as M;

class Account extends Common
{

    /**
     * 查询用户全部流水记录列表
     * @param id int 用户id *必传
     * @author 王柯 <wangke.email@foxmail.com>
     * @return \think\response\Json
     */
    public function index(){
        $account = (new M())->index();
        return $account;
    }

    /**
     * 查询用户奖金流水记录列表
     * @param id int 用户id *必传
     * @author 王柯 <wangke.email@foxmail.com>
     * @return \think\response\Json
     */
    public function bonus_record(){
        $account = (new M())->bonus_record();
        return $account;
    }

    /**
     * 查询用户学币流水记录列表
     * @param id int 用户id *必传
     * @author 王柯 <wangke.email@foxmail.com>
     * @return \think\response\Json
     */
    public function coin_record(){
        $account = (new M())->coin_record();
        return $account;
    }

    /**
     * 查询用户学币流水记录列表
     * @param id int 用户id *必传
     * @author 王柯 <wangke.email@foxmail.com>
     * @return \think\response\Json
     */
    public function tuition_record(){
        $account = (new M())->tuition_record();
        return $account;
    }

    /**
     * 查询用户奖金提现流水记录列表
     * @param id int 用户id *必传
     * @author 王柯 <wangke.email@foxmail.com>
     * @return \think\response\Json
     */
    public function bonus_withdrawals_record(){
        $account = (new M())->bonus_withdrawals_record();
        return $account;
    }

    /**
     * 查询学生学费提现流水记录列表
     * @param id int 用户id *必传
     * @author 王柯 <wangke.email@foxmail.com>
     * @return \think\response\Json
     */
    public function tuition_withdrawals_record(){
        $account = (new M())->tuition_withdrawals_record();
        return $account;
    }

    /**
     * 查询教师费用提现流水记录列表
     * @param id int 用户id *必传
     * @author 王柯 <wangke.email@foxmail.com>
     * @return \think\response\Json
     */
    public function teacher_cost_withdrawals_record(){
        $account = (new M())->teacher_cost_withdrawals_record();
        return $account;
    }

    /**
     * 查询教师费用流水记录列表
     * @param id int 用户id *必传
     * @author 王柯 <wangke.email@foxmail.com>
     * @return \think\response\Json
     */
    public function teacher_cost_record(){
        $account = (new M())->teacher_cost_record();
        return $account;
    }
}